/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo;

import java.util.Random;

/**
 *
 * @author Seth Yost
 */
public class Demo {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
	// TODO code application logic here
	System.out.println("This is a Demo file");
	long seed = System.currentTimeMillis();
	double average = 0;
	final int NUMBER = 1000;
	Random rnd = new Random(seed);
	for(int i = 0; i < NUMBER; i++)
	{
	    if(i != 0)
	    {
		if(i == 1)
		{
		    System.out.print(", ");
		}
		if(i%10 != 1)
		{
		    System.out.print(", ");
		}
	    }
	    int randNum = rnd.nextInt();
	    average += randNum;
	    System.out.print(randNum);
	    if(i%10 == 0 && i != 0)
	    {	
		System.out.println(", ");
	    }
	}
	average /= (double)NUMBER;
	System.out.print("\nAverage: " + average);
    }
}
